package com.maochang.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.maochang.pojo.PsInspectiontaskMain;
import com.maochang.pojo.PsInspectorDetail;
import com.maochang.pojo.util.ZhuRenWUHeXunJianMingXi;

import javax.servlet.http.HttpSession;
import java.util.List;


public interface XunJianRenWuZhiDingYuFenPeiService extends IService<PsInspectiontaskMain> {
    /**
     * 数据查询
     * @param ps
     * @param page
     * @param size
     * @return
     */
    Page<PsInspectiontaskMain> ChaXjZhuBiAo(PsInspectiontaskMain ps, int page, int size);
    /**
     * 分配任务 改状态
     * @param id
     * @return
     */
    Boolean  gaiZhuAngTai(Integer id);
    /**
     * 取消  巡检任务
     */
    Boolean  QuXiAoXunJiAn(Integer id);
    /**
     * 增加巡检任务
     */
    Boolean  addXunJiAn(ZhuRenWUHeXunJianMingXi xi, HttpSession httpSession);
    /**
     * 查任务
     * @param id
     * @return
     */
    PsInspectiontaskMain ChaRenWu(String id);

    /**
     * 查某个任务  巡检员
     * @param RenWuBAnHao
     * @return
     */
    List<PsInspectorDetail> CaXJiAnYUn(String RenWuBAnHao);

}
